<script setup>
const props = defineProps({
  title: String,
  data: {
    type: Object,
    required: true,
    default: () => ({}),
  },
})
</script>

<template>
  <div class="order">
    <div class="title">
      <p>{{ title }}</p>
    </div>
    <div class="data">
      <div class="shuju" v-for="(item, index) in data" :key="index">
        <div class="project">{{ item.project }}</div>
        <span class="num">{{ item.num }}</span>
      </div>
    </div>
  </div>
</template>

<style scoped>
.order {
  width: 311px;
  height: auto;
  border: 1px solid #e4e7ed;
  border-radius: 10px;
  margin: 20px 0 0 20px;
  .title {
    border-bottom: 1px solid #e4e7ed;
    p {
      margin: auto 25px;
      height: 46px;
      line-height: 46px;
    }
  }
  .data {
    display: flex;
    flex-wrap: wrap;
    .project {
      margin: 18px 30px 10px 30px;
    }
    .num {
      margin-left: 40px;
    }
  }
}
</style>
